<?php

/**
 * 安心站长axzz.cn，一个追求技术创造者。让网站、小程序、APP、应用程序牛起来……
 *
 * php8.2^ 版本v1.8.3
 *
 * cighsen02 365182575
 *
 * Create at: 2022.01.15
 * Update at: 2025.11.24
 */

use Twoir\Service\HttpKernel;

require dirname(__DIR__, 2) . DIRECTORY_SEPARATOR . 'e' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'connect.php';

// 准备
$http = HttpKernel::getInstance();

// 定义是否api方式，后期会删除
define('IS_API_ENABLED', $http->isApiEnabled());

// 引用帝国文件
require ECMS_PATH . 'e' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'functions.php';
require ECMS_PATH . 'e' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 't_functions.php';
include LoadLang('pub/fun.php', 0);
require ECMS_PATH . 'e' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'dbcache' . DIRECTORY_SEPARATOR . 'class.php';
// 不需要会员信息的
if (!$http->withMember()) {
    require ECMS_PATH . 'e' . DIRECTORY_SEPARATOR . 'member' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'user.php';
    require ECMS_PATH . 'e' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'dbcache' . DIRECTORY_SEPARATOR . 'MemberLevel.php';
}

$link = db_connect();
$empire	= new mysqlquery();

// 处理
$http->handle();

db_close();
$empire = null;

// 响应
$http->response();
